package constant.milk.cashbook.auto;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import constant.milk.cashbook.R;
import constant.milk.cashbook.SuperActivity;
import constant.milk.cashbook.sms.SmsActivity;
import constant.milk.cashbook.sms.SmsPastActivity;
import constant.milk.cashbook.tip.TipInfoActivity;
import constant.milk.cashbook.tip.TipMap;

public class AutoActivity extends SuperActivity
{
	public static final String MONTH_WEEKDAY_FLAG = "MONTH_WEEKDAY_FLAG";
	
	public static final int MONTH = 0;
	public static final int WEEKDAY = 1;
	
	private View autoOutView;
	private View autoInView;
	private View autoMoveView;
	private View autoLetterView;
	private View autoPastLetterView;
	private View autoHalbuView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.auto_activity);
		
		setTitle("자동화");
		
		setFindViewId();
		setOnClick();
		setData();
	}

	@Override
	protected void setFindViewId()
	{
		autoOutView = findViewById(R.id.autoOutView);
		autoInView = findViewById(R.id.autoInView);
		autoMoveView = findViewById(R.id.autoMoveView);
		autoLetterView = findViewById(R.id.autoLetterView);
		autoPastLetterView = findViewById(R.id.autoPastLetterView);
		autoHalbuView = findViewById(R.id.autoHalbuView);
	}

	@Override
	protected void setOnClick()
	{
		autoOutView.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(superContext, AutoOutListActivity.class);
				startActivity(intent);
			}
		});
		
		autoInView.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(superContext, AutoInListActivity.class);
				startActivity(intent);
			}
		});
		
		autoMoveView.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(superContext, AutoMoveListActivity.class);
				startActivity(intent);
			}
		});
		
		autoLetterView.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(superContext, SmsActivity.class);
				startActivity(intent);
			}
		});
		
		autoPastLetterView.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(superContext, SmsPastActivity.class);
				startActivity(intent);
			}
		});
		
		autoHalbuView.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(superContext, HalbuActivity.class);
				startActivity(intent);
			}
		});
	}

	@Override
	protected void setData()
	{
	}

	@Override
	protected void tipButton()
	{
		Intent intent = new Intent(superContext, TipInfoActivity.class);
		intent.putExtra(TipInfoActivity.TIP_ID, TipMap.TIP_AUTO);
		startActivity(intent);
	}

}
